package com.xs.tool.common.result;

public enum  ResultsCode {
	SUCCESS(200, "成功"),
	FAIL(-1, "失败"),
	ERROR(500, "服务器异常"),
	UNAUTHORIZED(401, "未认证（签名错误）"),
	LOGIN_UNAME(10101, "用户名错误"),
	LOGIN_PWD(10102, "密码不能为空"),
	LOGIN_NOUNAME(10103, "用户不存在"),
	LOGIN_PWD_E(10104, "密码错误"),
	LOGIN_YZM(10105, "验证码不能为空"),
	LOGIN_EMAIL(10106, "邮箱不能为空"),
	LOGIN_HAVE_UNAME(10107, "用户已经存在"),
	NOT_FOUND(404, "接口不存在");

	public int code;
	public String message;

	ResultsCode(int code, String message) {
		this.code = code;
		this.message = message;
	}
}
